<template>
  <div class="fundodoo-center">
    <el-button size="mini" type="primary" title="编辑" circle @click="editGoods"><i class="el-icon-edit" /></el-button>
    <el-button size="mini" type="primary" title="属性" circle><i class="el-icon-share" /></el-button>
    <el-button size="mini" type="primary" title="删除" circle><i class="el-icon-delete" /></el-button>
    <el-button size="mini" type="primary" title="评论" circle><i class="el-icon-service" /></el-button>
  </div>
</template>

<script>
export default {
  name: 'GoodsOperating',
  components: {

  },
  props: {
    gid: {
      type: String,
      required: true
    }
  },
  data() {
    return {

    }
  },
  created() {

  },
  mounted() {

  },
  beforeMount() {

  },
  methods: {
    editGoods() {
      const id = this.gid
      this.$router.push({ name: 'goods-edit', params: { id }})
    }
  }
}

</script>

<style scoped>

</style>
